﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Runda.CMS.Bll;
using System.Data;
using Runda.CMS.Common.Entity;
using Runda.CMS.Common.Utility;

namespace Runda.CMS.Portal.Finiance
{
    public partial class Billlist : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString["cBVCode"] != null)
                {
                    BindGrid();
                }
            }
        }

        private void BindGrid()
        {
            BillBll bll = new BillBll();
            int RecordCount = 0;
            DataTable dt = bll.GetBills(" and cBVCode = '" + Request.QueryString["cBVCode"].ToString() + "'", "cBVCode", AspNetPager2.PageSize, AspNetPager2.CurrentPageIndex, out RecordCount);
            RadGrid1.DataSource = dt;
            RadGrid1.DataBind();
        }

        

    }
}
